package com.lx.pc.mybatis.repository.wreceiptorder;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.mybatis.repository.annotation.Query;
import org.springframework.data.mybatis.repository.support.MybatisRepository;
import org.springframework.stereotype.Repository;

import com.lx.pc.domain.entity.wreceiptorder.WReceiptOrderEntity;

@Repository("wReceiptOrderRepository")
public interface WReceiptOrderRepository extends MybatisRepository<WReceiptOrderEntity, BigInteger>{

	/**
	 * 查询总数
	 */
	@Query("findByWReceiptOrderCount")
	public int findByWReceiptOrderCount(WReceiptOrderEntity receiptOrderEntity);
	
	/**
	 * 查询分页
	 * @param WReceiptOrderEntity
	 * @param page
	 * @param size
	 * @return
	 */
	@Query("findByWReceiptOrder")
	public List<WReceiptOrderEntity> findByWReceiptOrder(WReceiptOrderEntity receiptOrderEntity,Integer page,Integer size);
}
